package com.ruoyi.pets.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 宠物信息对象 pets_info
 * 
 * @author isc
 * @date 2024-05-01
 */
public class PetsInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 宠物名称 */
    @Excel(name = "宠物名称")
    private String name;

    /** 宠物图片 */
    @Excel(name = "宠物图片")
    private String pic;

    /** 宠物年龄 */
    @Excel(name = "宠物年龄")
    private Long age;

    /** 宠物品种 */
    @Excel(name = "宠物品种")
    private String breed;

    /** 宠物体重 */
    @Excel(name = "宠物体重")
    private String weight;

    /** 是否健康（0是 1否） */
    @Excel(name = "是否健康", readConverterExp = "0=是,1=否")
    private String isHealth;

    /** 绝育时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "绝育时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date jueyuTime;

    /** 主人名称 */
    @Excel(name = "主人名称")
    private String masterName;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setBreed(String breed) 
    {
        this.breed = breed;
    }

    public String getBreed() 
    {
        return breed;
    }
    public void setWeight(String weight) 
    {
        this.weight = weight;
    }

    public String getWeight() 
    {
        return weight;
    }
    public void setIsHealth(String isHealth) 
    {
        this.isHealth = isHealth;
    }

    public String getIsHealth() 
    {
        return isHealth;
    }
    public void setJueyuTime(Date jueyuTime) 
    {
        this.jueyuTime = jueyuTime;
    }

    public Date getJueyuTime() 
    {
        return jueyuTime;
    }
    public void setMasterName(String masterName) 
    {
        this.masterName = masterName;
    }

    public String getMasterName() 
    {
        return masterName;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("pic", getPic())
            .append("age", getAge())
            .append("breed", getBreed())
            .append("weight", getWeight())
            .append("isHealth", getIsHealth())
            .append("jueyuTime", getJueyuTime())
            .append("masterName", getMasterName())
            .append("birthday", getBirthday())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
